package com.h820;

public class Demo {
    public static void main(String[] args) {
        String n = "sjkdfdsjfS";
        char[] c = n.toCharArray();
        int x = 0;
        for (int i = 0; i < c.length; i++) {
            if (c[i]== 's'){
                x++;
            }
        }
        System.out.println(x);
    }
}
